package com.onlygx.dva.web.base.controller;

import com.onlygx.dva.common.entity.common.RT;
import com.onlygx.dva.common.entity.dto.CoreUserDTO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 瞳见科技
 *
 * @author : GaoXiang
 * 时间 : 2021/12/24
 * 介绍 :
 */
@RestController
@RequiredArgsConstructor
@Api(tags = "FREE - 用户相关")
@RequestMapping("/free/user")
public class FreeUserController {

    /**
     * 权限拦截
     */
    @ApiOperation(value = "用户无权限跳转",tags = "用户权限相关")
    @GetMapping("/unauthorized")
    public RT<CoreUserDTO> unauthorized(){
        return RT.error("用户无权限操作！");
    }
}
